package com.ruoyi.quartz.task;

import com.ruoyi.system.service.IBillMonthStatisticService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 定时任务调度
 *
 * @author hanll
 */
@Component("myTask")
public class MyTask {
    @Resource
    private IBillMonthStatisticService billMonthStatisticService;

    /**
     *  自动生成未生成的账单统计
     */
    public void generateBillStatistic() {
        System.out.println("执行无参方法");
    }

    /**
     *  生成某月份账单统计
     */
    public void generateBillStatistic(String monthStr) {
        billMonthStatisticService.generateBillStatistic(monthStr);
    }
}
